From: Bryan Tong Minh Date: Fri, 12 Sep 2008 22:26:07 +0000 (+0000) Subject: Don't access $_SESSION in UploadBase::stashSession. X-Git-Tag: 1.31.0-rc.0~45341 X-Git-Url: http://git.cyclocoop.org/%22.%24info%5B?a=commitdiff_plain;h=5734107ad6853d39a55d45682c499f949d6e9d4f;p=lhc%2Fweb%2Fwiklou.git Don't access $_SESSION in UploadBase::stashSession. --- diff --git a/includes/UploadBase.php b/includes/UploadBase.php index 665f413946..e137ee54ea 100644 --- a/includes/UploadBase.php +++ b/includes/UploadBase.php @@ -370,14 +370,12 @@ class UploadBase { return false; } - $key = mt_rand( 0, 0x7fffffff ); - $_SESSION['wsUploadData'][$key] = array( + return array( 'mTempPath' => $status->value, 'mFileSize' => $this->mFileSize, 'mFileProps' => $this->mFileProps, 'version' => self::SESSION_VERSION, ); - return $key; } /**